class A
{
    public void MethodA()
    {
        System.out.println("MethodA");
    }
}
class B extends  A
{
    public void MethodB()
    {
        System.out.println("Method B");
    }

    public void MethodA()
    {
        System.out.println("Method and B");
    }
    public void show()
    {
        MethodB();
        MethodA();
    }
}
public class Test3 {
    public static void main(String[] args) {
        B b=new B();
        b.show();
    }
}
